package com.yangcangclub.banner.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * Banner轮播图实体类
 * Created by Administrator on 2017/2/23 0023.
 */
public class BannerInfo {

    private int id; 	/** 主键ID */
    private String name; 	/** Banner名称 */
    private String image; 	/** Banner图 */
    private String url; 	/** 链接 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date startDate; 	/** 开始日期 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date endDate; 	/** 结束日期 */
    private int status; 	/** 状态:1未开始、2开始、3已结束 */
    private Date pubDate; 	/** 发布时间 */
    private int pubUserId; 	/** 发布人ID */
    private String pubUserName; 	/** 发布人name 冗余字段 */
    private int orderSort; 	/** 排序字段 */
    private int isDelete; 	/** 是否删除（1删除，2是正常） */
    private int createUserId; 	/** 创建人用户ID */
    private Date createDate; 	/** 创建时间 */

    //region getters and setters
    public int getId() {return id;}
    public void setId(int id) {this.id = id;}
    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
    public Date getStartDate() {return startDate;}
    public void setStartDate(Date startDate) {this.startDate = startDate;}
    public Date getEndDate() {return endDate;}
    public void setEndDate(Date endDate) {this.endDate = endDate;}
    public String getImage() {return image;}
    public void setImage(String image) {this.image = image;}
    public String getUrl() {return url;}
    public void setUrl(String url) {this.url = url;}
    public int getStatus() {return status;}
    public void setStatus(int status) {this.status = status;}
    public Date getPubDate() {return pubDate;}
    public void setPubDate(Date pubDate) {this.pubDate = pubDate;}
    public int getPubUserId() {return pubUserId;}
    public void setPubUserId(int pubUserId) {this.pubUserId = pubUserId;}
    public String getPubUserName() {return pubUserName;}
    public void setPubUserName(String pubUserName) {this.pubUserName = pubUserName;}
    public int getOrderSort() {return orderSort;}
    public void setOrderSort(int orderSort) {this.orderSort = orderSort;}
    public int getIsDelete() {return isDelete;}
    public void setIsDelete(int isDelete) {this.isDelete = isDelete;}
    public int getCreateUserId() {return createUserId;}
    public void setCreateUserId(int createUserId) {this.createUserId = createUserId;}
    public Date getCreateDate() {return createDate;}
    public void setCreateDate(Date createDate) {this.createDate = createDate;}
    //endregion


    @Override
    public String toString() {
        return "BannerInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", url='" + url + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", status=" + status +
                ", pubDate=" + pubDate +
                ", pubUserId=" + pubUserId +
                ", pubUserName='" + pubUserName + '\'' +
                ", orderSort=" + orderSort +
                ", isDelete=" + isDelete +
                ", createUserId=" + createUserId +
                ", createDate=" + createDate +
                '}';
    }
}
